<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>RVM : Building Patched Versions</title>
        <link rel="stylesheet" href="styles/site.css" type="text/css" />
        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>

    <body>
        <div id="page">
            <div id="main">
                <div id="main-header" class="pageSectionHeader">
                    <h1 id="title-heading" class="pagetitle">
                                                <span id="title-text">
                            RVM : Building Patched Versions
                        </span>
                    </h1>

                    <div class="page-metadata">
                        <p>This page last changed on Jul 07, 2007 by <font color="#0050B2">pdonald</font>.</p>
                    </div>
                </div>

                <div id="content" class="view">
                    <div id="main-content" class="wiki-content group">
                    <p>As part of the research process there will be a need to evaluate a set of changes to the source tree. To make this process easier the property named <code>patch.name</code> can be set to a non-empty string. This will cause the output directory to have the name <code>${config.name}_${target.name}_${config.variant</code>} rather than <code>${config.name}_${target.name</code>}, thus making it easy to differentiate between the patched and unpatched runtimes. </p>

<p>The following steps will create a runtime without the patch in <code>dist/prototype_ia32-linux</code> and a runtime with the patch applied in <code>dist/prototype_ia32-linux_ReadBarriers</code>. </p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>% cd $RVM_ROOT
% ant -Dconfig.name=prototype -Dhost.name=ia32-linux
% patch -p0 &lt; ReadBarriers.diff
% ant -Dconfig.variant=ReadBarriers -Dconfig.name=prototype -Dhost.name=ia32-linux
% patch -R -p0 &lt; ReadBarriers.diff
</pre>
</div></div>

<p>The <code>config.variant</code> property is also supported and reported as part of the test infrastructure.</p>
                    </div>

                    
                 
                </div>             </div> 
            <div id="footer" style="background: url(http://docs.codehaus.org/images/border/border_bottom.gif) repeat-x;">
                <p><small>Document generated by Confluence on Feb 17, 2012 10:24</small></p>
            </div>
        </div>     </body>
</html>
